/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class EventGroup.
 *
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class EventGroup {
	
	/** The event group id. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long eventGroupId;

	/** The event id. */
	@PrimaryKey
	private Long eventId;
	
	/** The group id. */
	@PrimaryKey
	private Long groupId;

	/**
	 * Instantiates a new event group.
	 */
	public EventGroup() {
		
	}

	/**
	 * Instantiates a new event group.
	 *
	 * @param eventGroupId the event group id
	 * @param eventId the event id
	 * @param groupId the group id
	 */
	public EventGroup(Long eventGroupId, Long eventId, Long groupId) {
		this.eventGroupId = eventGroupId;
		this.eventId = eventId;
		this.groupId = groupId;
	}

	/**
	 * Gets the event group id.
	 *
	 * @return the event group id
	 */
	public final Long getEventGroupId() {
		return this.eventGroupId;
	}

	/**
	 * Sets the event group id.
	 *
	 * @param eventGroupId the new event group id
	 */
	public final void setEventGroupId(Long eventGroupId) {
		this.eventGroupId = eventGroupId;
	}

	/**
	 * Gets the event id.
	 *
	 * @return the event id
	 */
	public final Long getEventId() {
		return this.eventId;
	}

	/**
	 * Sets the event id.
	 *
	 * @param eventId the new event id
	 */
	public final void setEventId(Long eventId) {
		this.eventId = eventId;
	}

	/**
	 * Gets the group id.
	 *
	 * @return the group id
	 */
	public final Long getGroupId() {
		return this.groupId;
	}

	/**
	 * Sets the group id.
	 *
	 * @param groupId the new group id
	 */
	public final void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

}
